<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>

<f:subview id="item">
<h:form id="itemForm">
<h:outputText value="#{itemPageBean.item.attribute1} #{itemPageBean.item.productName}" styleClass="title"/>
<h:panelGrid columns="2" styleClass="standard" cellpadding="2" columnClasses=",full">
  <h:outputText value="#{itemPageBean.item.image}" escape="false"/>
  <h:panelGrid columns="1" styleClass="standard">
    <h:panelGroup>
      <h:outputText value="List Price:" styleClass="subTitle"/>
      <h:outputText value="#{itemPageBean.item.listPrice}">
	    <f:convertNumber type="currency"/>
      </h:outputText>
    </h:panelGroup>
    <h:panelGroup>
      <h:outputText value="Your Price:" styleClass="subTitle"/>
      <h:outputText value="#{itemPageBean.item.unitCost}">
	    <f:convertNumber type="currency"/>
      </h:outputText>
    </h:panelGroup>
 	<h:commandLink action="#{cartBean.addItemAction}">
	  <h:outputText value="Add to Cart" styleClass="subTitle"/>
	  <f:param name="itemId" value="#{itemPageBean.item.itemId}"/>
	</h:commandLink>  
  </h:panelGrid>
</h:panelGrid>
</h:form>
</f:subview>